import { action, computed, observable } from 'mobx'

export class CompanyStore {
  @observable name: string = 'CompanyStoreNameTest'
  @observable sex: string = '男'

  @action changeName = (name: string): void => {
    this.name = name
  }

  @computed get nameLength() {
    return this.name.length
  }
}

export default new CompanyStore()
